<script type="text/javascript">
                    /*$(document).ready(function(){
                        $("#weblink").change(function(){
                            var link = $("#weblink").val();
                            if (link!='')
                                window.open(link);
                        });    
                    })*/
     $(function() {
        $("#weblink").change(function() {
            if ($(this).val()) {
                window.open($(this).val(), '_blank');
            }
        });
    });

	window.onload=montre;
	function montre(id) {
	var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
	if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
	if (d) {d.style.display='block';}
	}


</script>

	<!-- Het Script Xo Doc Menu Con -->
    <div id="wrapper">
        <div id="leftMenu" class="grid_3">
        	<dt onclick="javascript:montre();" class="round-corner first_item"><a href="index.php">Trang chủ</a></dt>
   			<dt onclick="javascript:montre('smenu2');">Giới thiệu chung</dt>
                <dd id="smenu2">
                <ul>
                <?php
                    $sql = "SELECT  * FROM gioithieu WHERE STATUS = 1";
                    $query = mysql_query($sql) or die("Can't query menu gioithieu");
                    while ($row = mysql_fetch_array($query))
                    {
                    ?>
                    <li><a href = "gioithieu.php?id=<?php echo $row['idgioithieu'];?>"><?php echo $row['tengioithieu'];?></a></li>
                    <?php
                    }
                ?>
                </ul>
                </dd>
         	
                <dt><a href="tintuc.php">Tin tức</a></dt>
                <dt><a href="thongbao.php">Thông báo</a></dt>
                <dt onclick="javascript:montre('smenu3');">Kế hoạch - TKB</dt>
                    <dd id="smenu3">
                    <ul>
                            <li><a href="lichcongtac.php">Lịch công tác</a></li>
                            <li><a href="thoikhoabieu.php">Thời khóa biểu</a></li>
                    </ul>   
                    </dd>
                <dt><a href="thanhtich.php">Thành tích nhà trường</a></dt>
                <dt onclick="javascript:montre('smenu4');">Cơ cấu tổ chức</dt>
                    <dd id="smenu4">
                    <ul>
                    <?php
                        $sql = "SELECT  * FROM cocautochuc WHERE STATUS = 1";
                        $query = mysql_query($sql) or die("Can't query co cau to chuc");
                        while ($row = mysql_fetch_array($query))
                        {
                        ?>
                        <li><a href = "cocauchitiet.php?id=<?php echo $row['idcocautochuc'];?>"><?php echo $row['tentochuc'];?></a></li>
                        <?php
                        }
                    ?>
                    </ul>
                    </dd>
                
                <dt><a href="giaovien.php">Thông tin giáo viên</a></dt>
                <dt><a href="hocsinh.php">Hoạt động học sinh </a></dt>
                <dt><a href="congvan.php">Công văn - Văn bản</a></dt>
                <dt><a href="hinhanh.php">Hình ảnh hoạt động</a></dt>
				<dt><a href="#">Diễn đàn</a></dt>
			<!--	<dt><a href="forum/">Diễn đàn</a></dt>-->                 
                <dt><a href="lienhe.php">Đóng góp ý kiến</a></dt>                 
            <div class="clear"></div>
            
            <!-- Van Ban Tai Lieu -->
            <div id="vanbantailieu">
                 <div class="tittle">Văn Bản Tài Liệu</div>
                <div id="noidungvanbantailieu">
                     <ul>
                    	 <?php
							$sql = "SELECT  * FROM congvan WHERE STATUS = 1 ORDER BY thoigian DESC LIMIT 3";
							$query = mysql_query($sql) or die("Can't query cong van");
							while ($row = mysql_fetch_array($query))
							{
							?>
							<li><a href = "upload/files/<?php echo $row['luutru'];?>"> <?php echo substr($row['tieude'],0,22);?>... </a></li>
							<?php
							}
						?>
                    </ul>
                </div>
            </div>
            <!-- Het Van Ban Tai Lieu -->
            <!-- Lien Ket Website -->
            <div class="box_weblink">
                <div class="tittle"> Liên Kết Website</div>
                <div class="box_weblink_content">
                    <select id="weblink" onchange="if (this.value) window.location.href=this.value;">
         			<?php
							$sql = "SELECT  * FROM lienketwebsite WHERE STATUS = 1 ORDER BY thutu ASC";
							$query = mysql_query($sql) or die("Can't query lienketwebsite");
							while ($row = mysql_fetch_array($query))
							{
					?>
                                <option value="http://<?php echo $row['lienket'] ?>"><?php echo $row['tieude']?></option>
                    <?php
							}
					?>
                            </select>
                </div>
            </div>
                <!-- Het Lien Ket WebSite -->
                
        </div>
    
   